using Newtonsoft.Json;
using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace ST.Buz.Base.Entity
{
	/// <summary>
	/// 收款单
	/// </summary>
	[Serializable]
	[Table("IMS_FinanceRecv")]
	public partial class IMS_FinanceRecv
	{
		/// <summary>
		/// 
		/// </summary>
		[Key]
		[Column("ID")]
		public int ID { get; set; }

		/// <summary>
		/// 流水号
		/// </summary>
		[Column("SNo")]
		[StringLength(32, ErrorMessage = "{0}长度不能超过{1}")]
		public string SNo { get; set; }

		/// <summary>
		/// 总金额分配方式
		/// </summary>
		[Column("ShareType")]
		public int ShareType { get; set; }

		/// <summary>
		/// 客户/供应商ID
		/// </summary>
		[Column("PartnerID")]
		public int PartnerID { get; set; }

		/// <summary>
		/// 客户/供应商名称
		/// </summary>
		[Column("PartnerName")]
		[StringLength(120, ErrorMessage = "{0}长度不能超过{1}")]
		public string PartnerName { get; set; }

		/// <summary>
		/// 收款时间
		/// </summary>
		[Column("RecvDate")]
		public DateTime RecvDate { get; set; }

		/// <summary>
		/// 对方支付方式
		/// </summary>
		[Column("RecvWay")]
		public int RecvWay { get; set; }

		/// <summary>
		/// 收款凭证号
		/// </summary>
		[Column("BillNo")]
		[StringLength(30, ErrorMessage = "{0}长度不能超过{1}")]
		public string BillNo { get; set; }

		/// <summary>
		/// 是否开发票
		/// </summary>
		[Column("Invoice")]
		public bool Invoice { get; set; }

		/// <summary>
		/// 发票号码
		/// </summary>
		[Column("InvoiceNo")]
		[StringLength(20, ErrorMessage = "{0}长度不能超过{1}")]
		public string InvoiceNo { get; set; }

		/// <summary>
		/// 收款金额
		/// </summary>
		[Column("TotalRecv")]
		public decimal TotalRecv { get; set; }

		/// <summary>
		/// 状态
		/// </summary>
		[Column("StateNow")]
		public int StateNow { get; set; }

		/// <summary>
		/// 备注
		/// </summary>
		[Column("Comment")]
		[StringLength(100, ErrorMessage = "{0}长度不能超过{1}")]
		public string Comment { get; set; }

		/// <summary>
		/// 创建时间
		/// </summary>
		[Column("AddDate")]
		public DateTime AddDate { get; set; }

		/// <summary>
		/// 创建人ID
		/// </summary>
		[Column("AddManID")]
		[JsonIgnore]
		public int AddManID { get; set; }

		/// <summary>
		/// 创建人
		/// </summary>
		[Column("AddManName")]
		[StringLength(20, ErrorMessage = "{0}长度不能超过{1}")]
		public string AddManName { get; set; }

		/// <summary>
		/// OrgID
		/// </summary>
		[JsonIgnore]
		[Column("OrgID")]
		public int OrgID { get; set; }

	}
}

